package day6;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Test1 {
    public static void main(String[] args) throws ParseException {
        String s1 = "2000-05-30";
        String s2 = "2023-12-27";

        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
        Date d1 = sdf.parse(s1);
        Date d2 = sdf.parse(s2);
        long l = (d2.getTime() - d1.getTime())/1000/60/60/24;

        System.out.println("您当前活了" + l + "天，您还好吗？");
    }
}
